package com.itheima.pattern.factory.simple_factory;

// 咖啡店类
public class CoffeeStore {
    public Coffee orderCoffee(String type) {
        SimpleCoffeeFactory simpleCoffeeFactory = new SimpleCoffeeFactory();
        Coffee coffee = simpleCoffeeFactory.createCoffee(type);

        coffee.addSugar();
        coffee.addMilk();

        return coffee;
    }
}
